package BIOtest04;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutionException;

public class Server {
    public static void main(String[] args) {
        try{
            ServerSocket ss  = new ServerSocket(9000);
            while(true){
                Socket socket = ss.accept();
                ServerSocketThread thread =  new ServerSocketThread(socket);
                new ServerSocketThreadPool().executor(thread);
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
